x86, ioapic: Fix S3 suspend error.
authorKeir Fraser <keir.fraser@citrix.com>
Sun, 1 Mar 2009 14:17:08 +0000 (14:17 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sun, 1 Mar 2009 14:17:08 +0000 (14:17 +0000)
commit1f4246974a907c831d4692e29f8e3bcae30efdcb
tree130b2a094ab0737d5d3877694cbfc81747f99127
parent8bb2359cd71870efc23a5980708c47484fa1da53
x86, ioapic: Fix S3 suspend error.

Invoke ioapic_pm_state_alloc() earlier,
thus avoiding check_lock() BUG_ON() in spin_lock().

Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>
xen/arch/x86/io_apic.c
xen/include/asm-x86/io_apic.h